package com.hospital.demo.model.libokun;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

@Data//使用这个注解，就不用再去手写Getter,Setter,equals,canEqual,hasCode,toString等方法了，注解后在编译时会自动加进去。
@AllArgsConstructor//使用后添加一个构造函数，该构造函数含有所有已声明字段属性参数
@NoArgsConstructor//使用后创建一个无参构造函数
@Repository
public class Drug {


    private Integer drid;		//id号
    private String drname;		//药品名称
    private String drtypea;		//(处方药/非处方药)
    private String drtypeb;		//(中药/西药)

    private double drpricein;	//购入价格
    private double drpriceout;	//售出价格
    private String drtext;		//药品详情
    private Integer drnumber;    //药品数量

    public Integer getDrid() {
        return drid;
    }

    public void setDrid(Integer drid) {
        this.drid = drid;
    }

    public String getDrname() {
        return drname;
    }

    public void setDrname(String drname) {
        this.drname = drname;
    }

    public String getDrtypea() {
        return drtypea;
    }

    public void setDrtypea(String drtypea) {
        this.drtypea = drtypea;
    }

    public String getDrtypeb() {
        return drtypeb;
    }

    public void setDrtypeb(String drtypeb) {
        this.drtypeb = drtypeb;
    }

    public double getDrpricein() {
        return drpricein;
    }

    public void setDrpricein(double drpricein) {
        this.drpricein = drpricein;
    }

    public double getDrpriceout() {
        return drpriceout;
    }

    public void setDrpriceout(double drpriceout) {
        this.drpriceout = drpriceout;
    }

    public String getDrtext() {
        return drtext;
    }

    public void setDrtext(String drtext) {
        this.drtext = drtext;
    }

    public Integer getDrnumber() {
        return drnumber;
    }

    public void setDrnumber(Integer drnumber) {
        this.drnumber = drnumber;
    }

    @Override
    public String toString() {
        return "Drug{" +
                "drid=" + drid +
                ", drname='" + drname + '\'' +
                ", drtypea='" + drtypea + '\'' +
                ", drtypeb='" + drtypeb + '\'' +
                ", drpricein=" + drpricein +
                ", drpriceout=" + drpriceout +
                ", drtext='" + drtext + '\'' +
                ", drnumber=" + drnumber +
                '}';
    }

}

